package com.woniuxy.driverschool.service;

import com.woniuxy.driverschool.entity.Report;
import com.woniuxy.driverschool.entity.Student;
import com.woniuxy.driverschool.entity.StudyTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author: xyq
 * @version: 1.0.0
 * @create: 2021/9/29 11:16
 * @description: TODO
 */
@Service
public interface ReportService {
    //增添学员审查报告
    void addReport(Report report);
    //删除学员审查报告
    void removeReport(int rid);
    //修改学员审查报告
    void updateReport(String reportStauts,Date reportTime,String reportSubject,String student, String studyTime,int rid);
    //通过id查询学员审查报告
    Report selectReportByRid(int rid);
    //分页查询学员审查报告
    List<Report> selectAllReportsByPage(@Param("report")Report report, @Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize,
                                        @Param("startTime")Date startTime,@Param("endTime")Date endTime);
    //学员审查报告总条数
    int selectCountReportsByPage(@Param("report")Report report,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
}